{layout name="p/base"}
    <div class="row">
      <div class="col-lg-12">
        <h1>会员管理 <small>会员信息列表</small></h1>
        <ol class="breadcrumb">
          <li><a href="/manager/index"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li><a href="###"><i class="fa fa-dashboard"></i> 会员管理列表</a></li>
          <li class="active"><i class="fa fa-dashboard"></i> 会员信息</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          查看会员信息
        </div>
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        <form class="form-horizontal" role="form" action="/usercontrol/list" method="get">
          <div class="form-group col-lg-2" style="margin-right:10px;">
            <label for="">选择营地</label>
            <select class="form-control" name="camp_id">
            <option value="">全部</option>
            {volist name='campinfos' id='vo'}
            {if input('camp_id')==$vo['id']}
            <option value="{$vo.id}" selected>{$vo.name}</option>
            {else}
            <option value="{$vo.id}">{$vo.name}</option>
            {/if}
            {/volist}
            </select>
          </div>
          <div class="form-group col-lg-2" style="margin-right:10px;">
            <label for="">绑定房车</label>
            <select class="form-control" name="status">
              {if input('status')==='0'}
              <option value="0" selected>未绑定</option>
              <option value="1">已绑定</option>
              {else/}
              <option value="0">未绑定</option>
              <option value="1" selected>已绑定</option>
              {/if}
            </select>
          </div>
          <div class="form-group col-lg-2" style="margin-right:10px;">
            <label for="">搜索条件</label>
            <select class="form-control" name="searchfield">
              {if input('searchfield')=='email'}
              <option value="real_name" >姓名</option>
              <option value="email" selected>邮箱</option>
              <option value="phone">手机号</option>
              <option value="camp_name">营地名称</option>
              {elseif input('searchfield')=='phone'}
              <option value="real_name" >姓名</option>
              <option value="email">邮箱</option>
              <option value="phone" selected>手机号</option>
              <option value="camp_name">营地名称</option>
              {elseif input('searchfield')=='camp_name'}
              <option value="real_name" >姓名</option>
              <option value="email">邮箱</option>
              <option value="phone">手机号</option>
              <option value="camp_name" selected>营地名称</option>
              {elseif input('searchfield')=='real_name'}
              <option value="real_name" selected>姓名</option>
              <option value="email">邮箱</option>
              <option value="phone">手机号</option>
              <option value="camp_name">营地名称</option>
              {else}
              <option value="real_name">姓名</option>
              <option value="email">邮箱</option>
              <option value="phone">手机号</option>
              <option value="camp_name">营地名称</option>
            {/if}
            </select>
          </div>
          <div class="form-group col-lg-4 input-group" style="margin-right:10px;">
            <label for="">&nbsp;</label>
            <label for="">请输入搜索条件关键字</label>
            <input class="form-control" type="text" placeholder="请输入关键字" value="{:input('keyword')}" name="keyword">
            <label for="">&nbsp;</label>
            <span class="input-group-btn">
              <button class="btn btn-default" type="submit">搜索</button>
            </span>
          </div>
          <div class="clearfix"></div>
        </form>
        <div class="table-responsive">
          <table class="table table-bordered table-hover table-striped tablesorter">
            <thead>
              <tr>
                <th>账号</th>
                <th>姓名</th>
                <th>手机号码</th>
                <th>邮箱</th>
                <th>营地名称</th>
                <th>注册时间</th>
                <th>状态</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
            <form id="member" class="form-horizontal" role="form" action="" >
             {volist name='list' id='vo'}
              <tr>
                <td>{$vo.mobile}</td>
                <td>{$vo.real_name}</td>
                <td>{$vo.phone}</td>
                <th>{$vo.email}</th>
                <th>{$vo.camp_name}</th>
                <td>{$vo.created_at}</td>
                <td>{$vo->getStatus($vo['status'])}</td>
                <td><a href="/usercontrol/{$vo.id}/readinfo">查看详细信息</a></td>
              </tr>
              {/volist}
        </form>
      </tbody>
    </table>

          
